home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 6254 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.0 KB

  1. Path: news.mistral.co.uk!usenet
  2. From: ghira@mistral.co.uk (Adam Atkinson)
  3. Newsgroups: comp.lang.c,comp.sys.amiga.programmer
  4. Subject: Re: pointer conversion error
  5. Date: 25 Mar 96 22:34:08 +0000
  6. Organization: Mistral Internet (Brighton)
  7. Message-ID: <676.6658T1354T436@mistral.co.uk>
  8. References: <4j39n1$mh4@news.xs4all.nl>
  9. NNTP-Posting-Host: l65.mistral.co.uk
  10. X-Newsreader: THOR 2.22 (Amiga;TCP/IP)
  11.  
  12. On 24-Mar-96 10:55:29, Falstaff said:
  13. >ghira@mistral.co.uk (Adam Atkinson) writes:
  14.  
  15. >>my c compiler (SAS/C version 6.56) creates a warning about the following:
  16.  
  17. >>                        printf("%u %u %u \n", i, l, h);
  18.  
  19. >>three.c 36 Warning 104: conversion from pointer to const/volatile to pointer
  20. >>to non-const/volatile
  21.  
  22. >>What am I doing wrong? i,l and h are unsigned longs.
  23.  
  24. >Seems like the printf() prototype is missing.  #include <stdio.h>
  25.  
  26. actually, it turns out I should have used %lu not %u. oops
  27.  
  28. Adam Atkinson - ghira@mistral.co.uk / etlaman@etlxdmx.ericsson.se
  29. If I were a fuzzy-wuzzy bear, 3 would be a perfect square.
  30. If I were a bumble bee, Z would be a UFD.
  31.  
  32.  
  33.